﻿using Ec_System.Models.Web;
using Ec_System.Service.Web;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ec_System.Bll.Web
{
    public class CustomerAddressManager
    {
        CustomerAddressService customerAddressService = new CustomerAddressService();

        /// <summary>
        /// 增加地址
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public int AddCustomerAdr(CustomerAdressData model)
        {
            return customerAddressService.AddCustomerAdr(model);
        }

        /// <summary>
        /// 根据LoginID获取客户的收货地址
        /// </summary>
        /// <param name="loginID"></param>
        /// <returns></returns>
        public List<CustomerAdressData> GetCustomerAdrListByLoginID(string loginID)
        {
            return customerAddressService.GetCustomerAdrListByLoginID(loginID);
        }
    }
}
